package com.taotao.dao;

import com.taotao.model.ItemCate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemCateMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItemCate record);

    int insertSelective(ItemCate record);

    ItemCate selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ItemCate record);

    int updateByPrimaryKey(ItemCate record);

    @Select("select * from tb_item_cat where parent_id = #{parentId}")
    List<ItemCate> selectByParentId(@Param("parentId") Long parentId);
}
